import { RouteRecordRaw } from 'vue-router'
import { RouterTransition } from '@/components/transition'

const routeName = 'dashboard'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/dashboard',
    name: routeName,
    component: () =>
      import(
    /* webpackChunkName: "dashboard-welcome" */ '@/views/page/dashboard/workplace.vue'
      ),
    meta: {
      title: '课程列表'
    }
  },
  {
    path: '/detail',
    name: 'detail',
    component: () =>
      import(
  /* webpackChunkName: "dashboard-welcome" */ '@/views/page/dashboard/detail.vue'
      ),
    meta: {
      title: '课程详情'
    }
  },
  {
    path: '/notice',
    name: 'notice',
    component: () => import('@/views/page/notice/notice.vue'),
    meta: {
      title: '通知列表'
    }
  },
  {
    path: '/personal',
    name: 'personal',
    component: () => import('@/views/page/account/personal.vue'),
    meta: {
      title: '个性化'
    }
  },
  {
    path: '/safe',
    name: 'safe',
    component: () => import('@/views/page/account/safe.vue'),
    meta: {
      title: '账号设置'
    }
  },
  {
    path: '/history',
    name: 'history',
    component: () => import('@/views/page/account/history.vue'),
    meta: {
      title: '账号安全'
    }
  }

]

export default routes
